home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 11861 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.6 KB

  1. Path: newsfeed.internetmci.com!panix!not-for-mail
  2. From: acinader@panix.com (Arthur Cinader Jr)
  3. Newsgroups: gnu.g++.help,comp.lang.c++,panix.questions
  4. Subject: Character Graphics, g++, and curses
  5. Date: 16 Mar 1996 14:04:15 -0500
  6. Organization: Panix
  7. Message-ID: <4if3bf$d33@panix.com>
  8. NNTP-Posting-Host: panix.com
  9. Followup: gnu.g++.help
  10.  
  11. I am learning to program.  I am also learning to program in
  12. C++.  I am doing an excercise that requires drawing on the
  13. screen.  Not fancy graphics, just character based stuff on a
  14. plain ole 80x24 screen.  
  15.  
  16. I want to divide the screen into two sections.  
  17.  
  18.     The top twenty lines will be used for drawing geometric shapes
  19.     -- this is a Draw Space Screen Object.  
  20.  
  21.     The bottom four lines will be used for interacting with
  22.     the user -- this is the User Interface Screen Object. 
  23.  
  24. My prefernece would be to use cout and cin for the
  25. user interface object and some kind of (X,Y) coordinate
  26. addressing for the draw space screen object.
  27.  
  28. I do not have a fancy IDE and I am not about to get
  29. one.  I am using gnu g++ v2.4 in a text based
  30. environment.  That is the given.
  31.  
  32. I am planning on using curses to control the screen.
  33. While this should do the trick, it will not allow me
  34. to use cin and cout (I think!?!) for my user interface
  35. screen object.  Instead, I will need to use addstr()
  36. and getstr(). Not too bad.
  37.  
  38. My questions:
  39.  
  40. 1.  Is there a library in g++ that is the oo equiv of
  41.     curses I should be using instead?
  42.  
  43. 2.  Any advice on using curses with g++.  Is there
  44.     anything more I need to know than just 
  45.     g++ -c MyClass.C -lcurses
  46.  
  47. You can also look at this message as a preamble to the
  48. questions sure to follow. 
  49.  
  50. Thanks!
  51.  
  52. Arthur
  53.